import http from "@/utils/http";
 /**
 * 更新收货地址
 */
 export const postMemberCart = (data) => {
    return http({
      url: "/member/cart",
      method: "post",
      data,
    });
  };
  /**
 * 获取收货地址列表
 */
export const getMemberCart = () => {
    return http({
      url: "/member/cart",
    });
  };
  /**
 * 修改购物车商品
 */
 export const putMemberCart = (id,data) => {
    return http({
      url: "/member/cart/"+id,
      method: "put",
      data,
    });
  };
/**
 * 购物车全选/取消全选
 */
export const putMemberCartSelected = (data) => {
    return http({
      url: "/member/cart/selected",
      method: "put",
      data,
    });
  };
  /**
 * 删除/清空购物车商品
 */
export const deleteMemberCart = (data) => {
    return http({
      url: "/member/cart",
      method: "delete",
      data,
    });
  };